---
title: "datatable update selection · RUAL Documentation"
description: "Updates the datatable selection."
canonical: https://docs.rual.nl/block-types/state ui/state_set_datatable_selection_update
language: en
---

# datatable update selection

This block is part of the [`state ui`](https://docs.rual.nl/block-types/state%20ui) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Updates the datatable selection.

- flow `flow`

- state key required `value` State key of the datatable to retrieve the selection from

- selection required `array` Selection to set

- flow `flow`

- selection `array`

A typical wiring for [datatable update selection](https://docs.rual.nl/block-types/state%20ui/state_set_datatable_selection_update): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `key` pin; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `selection` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the datatable update selection block: typical wiring for datatable update selection.](https://docs.rual.nl/canvas-examples/state_set_datatable_selection_update.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
